unit uFrmBaseModal;

interface

uses
  Windows, Messages, Forms, Classes, Dialogs, JvBaseDlg, JvProgressDialog,
  Controls, ExtCtrls;

type
  TFrmBaseModal = class(TForm)
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormKeyPress(Sender: TObject; var Key: Char);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FrmBaseModal: TFrmBaseModal;

implementation

uses Rot_Utilidade;

{$R *.dfm}

procedure TFrmBaseModal.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  Action := CaFree;
end;

procedure TFrmBaseModal.FormKeyPress(Sender: TObject; var Key: Char);
begin
  if Key = #13 then begin
    Key := #0;
    PerForm(Wm_NextDlgCtl,0,0);
  end;
end;

end.
